package ch05;public class Application {
	public static void main(String args[]) {
		Pillar2 pillar;
		Geometry bottom = null;
		pillar = new Pillar2(bottom,100);
		System.out.println("体积："+pillar.getVolume());
		bottom = new Rectangle(12,22);
		pillar = new Pillar2(bottom,58);
		System.out.println("体积："+pillar.getVolume());
		bottom = new Circle(10);
		pillar = new Pillar2(bottom,58);
		System.out.println("体积："+pillar.getVolume());
	}
}
